﻿using System;
using FreeSql.DataAnnotations;

namespace QuDao
{
	/// <summary>
    /// biz_bill: biz_账单
    /// </summary>
	[Table(Name ="biz_bill")]
	public partial class Bill
	{
		/// <summary>
        /// 账单ID
        /// </summary>
		[Column(IsPrimary =true, IsIdentity =true)]
		public long BillID { get; set; }

        /// <summary>
        /// 账单类型：1-业务奖励，2-团队奖励，9-业绩提成
        /// </summary>
        public int BillType { get; set; }
		
		/// <summary>
        /// 租户ID
        /// </summary>
		public int TID { get; set; }
		
		/// <summary>
        /// 用户ID
        /// </summary>
		public long UserID { get; set; }
		
		///// <summary>
  //      /// 用户类型：分ABC三级
  //      /// </summary>
		//public string UserType { get; set; }
		
		/// <summary>
        /// 用户姓名
        /// </summary>
		public string TrueName { get; set; }
		
		/// <summary>
        /// 销售区域ID
        /// </summary>
		public int AreaID { get; set; }
		
		/// <summary>
        /// 关联用户ID：下级，买家
        /// </summary>
		public long RelationUserID { get; set; }
		
		/// <summary>
        /// 关联用户名
        /// </summary>
		public string RelationUserName { get; set; }
		
		/// <summary>
        /// 关联订单ID
        /// </summary>
		public long RelationOrderID { get; set; }
		
		/// <summary>
        /// 关联订单金额
        /// </summary>
		public decimal RelationOrderAmount { get; set; }
		
		/// <summary>
        /// 账单金额：收入为正数，支出为负数
        /// </summary>
		public decimal Amount { get; set; }
		
		/// <summary>
        /// 账单备注
        /// </summary>
		public string Memo { get; set; }
		
		/// <summary>
        /// 结算日期
        /// </summary>
		public DateTime ClearingDate { get; set; }
		
		/// <summary>
        /// 创建时间
        /// </summary>
		public DateTime CreateTime { get; set; }
		
				
	}
}